package com.kly.user.db.dao.impl;
import com.fqgj.common.base.AbstractBaseMapper;
import com.kly.user.db.dao.UserNameDictDao;
import com.kly.user.db.entity.UserNameDictEntity;
import org.springframework.stereotype.Repository;

/**
* User: linqu
* Date: 2024-01-10
* Time: 19:43:38.197
*/

@Repository
public class UserNameDictDaoImpl extends AbstractBaseMapper<UserNameDictEntity> implements UserNameDictDao {
    @Override
    public String getRandomName() {
        final UserNameDictEntity userNameDict = this.getSqlSession().selectOne(this.getStatement("getRandomName"));
        if (userNameDict != null) {
            return userNameDict.getNickName();
        }
        return null;
    }
}